package com.evil.application.pojo.dto.order;

import com.evil.application.pojo.dto.order.data.OrdersControlDataDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.List;

/**
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AppOrdersControlDataDTO extends OrdersControlDataDTO {

    /**
     * 应用key
     */
    @NotBlank(message = "应用key不能为空")
    private String applicationKey;

    /**
     * 触发源 订单id
     */
    private Long triggerOrderId;

    /**
     * 记录机器人应用层级
     */
    private List<String> logAppKeys;

    public AppOrdersControlDataDTO() {
        this.logAppKeys = new ArrayList<>();
    }
}
